package org.tea.inventory.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.tea.inventory.base.validation.groups.CreateGroup;
import org.tea.inventory.base.validation.groups.UpdateGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author hanzy
 * @description
 * @date 2023年04月24日 10:58
 */

@Data
public class MallMsgDto {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "")
    @NotNull(message = "活动id不能为空", groups = {UpdateGroup.class})
    private Long msgId;
    /**
     * 消息类型 0-系统消息 1-用户消息
     */
    @ApiModelProperty(value = "消息类型 0-系统消息 1-用户消息")
    private Integer type;
    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    @NotBlank(message = "消息标题不能为空", groups = {CreateGroup.class})
    private String title;
    @ApiModelProperty(value = "副标题")
    private String subTitle;
    @ApiModelProperty(value = "缩略图")
    private String imgUrl;
    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    @NotBlank(message = "消息内容不能为空", groups = {CreateGroup.class})
    private String content;
    /**
     * 发送人
     */
    @ApiModelProperty(value = "发送人")
    private String sender;
    @ApiModelProperty(value = "接收人")
    private List<String> recipients;
    /**
     * 状态 -1:删除, 0:开启, 1:关闭
     */
    @ApiModelProperty(value = "状态 -1:删除, 0:关闭, 1:开启")
    private Integer status;
    @ApiModelProperty(value = "定时时间")
    private Date jobTime;
    @ApiModelProperty(value = "是否定时 0-是 1-否")
    private int timeFlag;
}
